<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
{% block header %}
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
<title> {% block title %}WebSth - 分享，聚合{% endblock %} </title> 
<meta name="author" content="http://www.wooyun.org/"/> 
<meta name="copyright" content="http://www.wooyun.org/"/> 
<meta name="keywords" content="http://www.wooyun.org/"/> 
<meta name="description" content="http://www.wooyun.org/"/>
{% block refresh %}{% endblock %}
<link href="/static/css/style.css" rel="stylesheet" type="text/static/css"/> 
<script src="/static/js/jquery-1.4.2.min.js" type="text/javascript"></script> 
<script type="text/javascript"> 
 
$(function(){
	
	$(".listTable tbody tr").hover(function(){
		
		$(this).css("background","#EBEBEB");
 
	},function(){
	
		$(this).css("background","none");
 
	});
 
});
 
</script> 
</head> 
 
{% endblock %}
 
<body> 
 
	<div class="banner">
		<h1>WebSth</h1> 
        {% block login %}
            <div class="login">
            {% if request.user.is_authenticated %}
                欢迎 <a href="/u/">{{ request.user.get_profile.nickname }}</a> | <a href="/m/?next={{ request.path }}" >短消息</a> | <a href="/u/logout/?next={{ request.path }}" class="reg">退出</a>
            {% else %} 
                <a href="/u/login/">登录</a> | <a href="/u/register/" class="reg">注册</a>
            {% endif %}
			</div>
        {% endblock %}
	</div> 
 
	<div class="nav"> 
		<ul> 
			<li><a href="/">首页</a></li>
			<li><a href="/help/">帮助</a></li> 
			<li><a href="/about/">关于</a></li> 
		</ul> 
		<p><a href="#"><img src="/static/images/search.jpg" alt="搜索" title="搜索"/></a><input type="text"/></p> 
	</div> 
    
    {% block location %}
    <div class="bread"> 
		当前位置：<a href="/">WebSth</a> >> <a href="">首页</a> 
	</div>
    {% endblock %}
 
	<div class="content"> 
        {% block content %}{% endblock %}
	</div> 
    
    {% block footer %}
	<div class="copyright"> 
		{% block copyright %}Copyright &copy; 2010 <a href="#">www.websth.com</a> All Rights Reserved.{% endblock %}
	</div> 
    {% endblock %}
 
</body> 
</HTML> 